package com.origin.onlinesys.persistence.modules.sys.account;


import com.github.abel533.mapper.Mapper;
import com.origin.onlinesys.domain.modules.interviewsys.Account;

import java.util.List;
import java.util.Map;

/**
 *
 * Created by Administrator on 2015/1/8.
 * 账户操作类
 *
 */
public interface AccountMapper extends Mapper<Account> {
    List<Account> queryAll();

    /**
     * 修改密码
     * @param map
     * @return
     */
    public String selectUser(Map map);
    public void updatePwd(Map map);


    public Account selectInfo(String id);

    public List<Account> selectItem();

    public List<Account> selectByPage(Map map);

    public List<Account> selectBySate(String state);

    public String selectByPhoneNum(String phoneNum);

    public void addUserRole(Map map);

    public void updateUserRole(Map map);

    public Account selectById(String id);

    public List<Account> selectUserByRole(String zoneId);

    public List<Account> selectUserByRoleAndJobState(String zoneId);
}
